package yx.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * BsCourse entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_course", catalog = "")
public class BsCourse implements java.io.Serializable {

	// Fields

	private Integer id;
	private String courseName;
	private String courseNo;
	private Integer courseHour;
	private String teacherName;
	private String memo;

	// Constructors

	/** default constructor */
	public BsCourse() {
	}

	/** full constructor */
	public BsCourse(String courseName, String courseNo, Integer courseHour, String teacherName, String memo) {
		this.courseName = courseName;
		this.courseNo = courseNo;
		this.courseHour = courseHour;
		this.teacherName = teacherName;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "COURSE_NAME", length = 64)
	public String getCourseName() {
		return this.courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	@Column(name = "COURSE_NO", length = 10)
	public String getCourseNo() {
		return courseNo;
	}

	public void setCourseNo(String courseNo) {
		this.courseNo = courseNo;
	}

	@Column(name = "COURSE_HOUR")
	public Integer getCourseHour() {
		return this.courseHour;
	}

	public void setCourseHour(Integer courseHour) {
		this.courseHour = courseHour;
	}

	@Column(name = "TEACHER_NAME", length = 32)
	public String getTeacherName() {
		return this.teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}